//图片滚动列表
var Speed1= 10; //速度(毫秒)
var Space1 = 5; //每次移动(px)
var PageWidth1 = 179; //翻页宽度
var fill1 = 0; //整体移位
var MoveLock1 = false;
var MoveTimeObj1;
var Comp1 = 0;
var AutoPlayObj1 = null;
GetObj1("bol2").innerHTML = GetObj1("bol1").innerHTML;
GetObj1('bller').scrollLeft = fill1;
GetObj1("bller").onmouseover = function(){clearInterval(AutoPlayObj1);}
GetObj1("bller").onmouseout = function(){AutoPlay1();}
//AutoPlay1();
function GetObj1(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}}
function AutoPlay1(){ //自动滚动
 clearInterval(AutoPlayObj1);
 AutoPlayObj1 = setInterval('ISL_GoDown1();ISL_StopDown1();',3000); //间隔时间
}
function ISL_GoUp1(){ //上翻开始
 if(MoveLock1) return;
 clearInterval(AutoPlayObj1);
 MoveLock1 = true;
 MoveTimeObj1 = setInterval('ISL_ScrUp1();',Speed1);
}
function ISL_StopUp1(){ //上翻停止
 clearInterval(MoveTimeObj1);
 if(GetObj1('bller').scrollLeft % PageWidth1 - fill1 != 0){
  Comp1 = fill1 - (GetObj1('bller').scrollLeft % PageWidth1);
  CompScr1();
 }else{
  MoveLock1 = false;
 }
//AutoPlay1();
}
function ISL_ScrUp1(){ //上翻动作
 if(GetObj1('bller').scrollLeft <= 0){GetObj1('bller').scrollLeft = GetObj1('bller').scrollLeft + GetObj1('bol1').offsetWidth}
 GetObj1('bller').scrollLeft -= Space1 ;
}
function ISL_GoDown1(){ //下翻
 clearInterval(MoveTimeObj1);
 if(MoveLock1) return;
 clearInterval(AutoPlayObj1);
 MoveLock1 = true;
 ISL_ScrDown1();
 MoveTimeObj1 = setInterval('ISL_ScrDown1()',Speed1);
}
function ISL_StopDown1(){ //下翻停止
 clearInterval(MoveTimeObj1);
 if(GetObj1('bller').scrollLeft % PageWidth1 - fill1 != 0 ){
  Comp1 = PageWidth1 - GetObj1('bller').scrollLeft % PageWidth1 + fill1;
  CompScr1();
 }else{
  MoveLock1 = false;
 }
//AutoPlay1();
}
function ISL_ScrDown1(){ //下翻动作
 if(GetObj1('bller').scrollLeft >= GetObj1('bol1').scrollWidth){GetObj1('bller').scrollLeft = GetObj1('bller').scrollLeft - GetObj1('bol1').scrollWidth;}
 GetObj1('bller').scrollLeft += Space1 ;
}
function CompScr1(){
 var num1;
 if(Comp1 == 0){MoveLock1 = false;return;}
 if(Comp1 < 0){ //上翻
  if(Comp1 < -Space1){
   Comp1 += Space1;
   num1 = Space1;
  }else{
   num1 = -Comp1;
   Comp1 = 0;
  }
  GetObj1('bller').scrollLeft -= num1;
  setTimeout('CompScr1()',Speed1);
 }else{ //下翻
  if(Comp1 > Space1){
   Comp1 -= Space1;
   num1 = Space1;
  }else{
   num1 = Comp1;
   Comp1 = 0;
  }
  GetObj1('bller').scrollLeft += num1;
  setTimeout('CompScr1()',Speed1);
 }
}